package nonre.sgy.gencode.model;

import java.io.File;
import java.lang.reflect.Field;
import java.util.List;


import nonre.sgy.gencode.GenConfig;
import nonre.sgy.gencode.gen.GenUtil;

public class Html {

	public static void gen(File entityfile){
		
		String entityName = entityfile.getName().split("\\.")[0];
		
		try {
			Class<?> clazz = Class.forName(GenConfig.genPackage + ".entity." + entityName);
			
			List<Field> fields = GenUtil.getFields(clazz);
			for (int i = 0; i < fields.size(); i++) {
				System.out.println(fields.get(i).getName());
			}
			//TODO 正在开发中
			
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}
}
